package io.renren.modules.sp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.modules.sp.dto.SpTeamUserDTO;
import io.renren.modules.sp.dto.SpUserDTO;
import io.renren.modules.sp.entity.SpTeamUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 领队成员
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-04-20
 */
public interface SpTeamUserService extends CrudService<SpTeamUserEntity, SpTeamUserDTO> {

    Result saveTeamUser(SpTeamUserDTO dto);

    List<SpTeamUserEntity> queryList(QueryWrapper<SpTeamUserEntity> params);

    Result<Map<String,Object>> queryTeamUserList(SpUserDTO user);

    Result<Map<String,Object>> delTeamUser(Long userId, Long teamUserId);

    Result setLeader(Long teamId,Long teamUserId);

}